package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleSetingDao {
    Page<Role> findByCondition(String queryString);

    List<Permission> findAllPermissions();

    List<Menu> findAllmenus();

    void setRoleAndpermissions(Map<String, Integer> map);

    void setRoleAndmenus(Map<String, Integer> map);

    void add(Role role);

    void deletePermissions(Integer id);

    void deletMeuns(Integer id);

    void delete(int id);

    Role findRoleById(int id);
    List<Menu> findByRoleId(Integer id);
}
